# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/25 16:47
# File: experience.py
# IDE: PyCharm
from django.db import models
from utils.common import prefix
from utils.choices import experience_process_choices

class Experience(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    process = models.CharField(max_length=50,choices=experience_process_choices)
    title = models.CharField(max_length=10, blank=True, null=True)
    list_pic_url = models.CharField(max_length=10, blank=True, null=True)
    content = models.TextField()
    read_count = models.IntegerField(blank=True, null=True,default=0)
    update_time = models.DateTimeField(blank=True, null=True,auto_now=True)
    is_delete=models.IntegerField(default=0)

    class Meta:
        managed = False
        db_table = prefix+'experience'